//
//  ViewController.m
//  UI05_rainbowLamp
//
//  Created by Bodi on 16/6/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "BodiUIview.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatView];
    // Do any additional setup after loading the view, typically from a nib.
}
- (void)creatView{
    BodiUIview *view = [[BodiUIview alloc]initWithFrame:CGRectMake(20, 20, 300, 300) withCount:7];
    [self.view addSubview:view];
    [view release];
    
    BodiUIview *view2 = [[BodiUIview alloc]initWithFrame:CGRectMake(20, 340, 300, 300) withCount:7];
    [self.view addSubview:view2];
    [view2 release];
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
